<?php
/*
 * Created on May 28, 2008
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
abstract class Control
{
 	protected $id;
 	protected $controlIds;
 	protected $controls;
	protected $container;		//page o usercontrol 	
 	
 	static $restricted_attrs = array("runat", "serverAction", "serverOnClick", "serverOnValueChanged", "serverOnSomeStuff");
	
	
	public function getControl($id)
	{
		//echo "$id ->getControl($id)\n";
		return $this->controls[$id];
	}
	
	public function getId() { return $this->id; }
	
	
	//VAMOS A EXPERIMENTAR CON LAS PSEUDO-PROPERTIES
	public function __get($name)
	{
		if($name=="Id") return $this->id;
	}
	
}
 
?>
